package com.vavr.checkincms.common.exception;

import com.vavr.checkincms.common.domain.ResultEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * BaseException
 *
 * @since 2.0.0
 */
@Getter
@Setter
public class BaseException extends RuntimeException {
    private ResultEnum resultEnum;

    public BaseException(ResultEnum resultEnum) {
        super((resultEnum.getMsg()));
        this.resultEnum = resultEnum;
    }
}
